From 7a01aa143645d57bb5d58ce7edd42d5834bcdef9 Mon Sep 17 00:00:00 2001 From: "chrisw@osdl.org[iap10]" Date: Fri, 15 Apr 2005 22:14:51 +0000 Subject: [PATCH] bitkeeper revision 1.1302 (42603cdb-AbHd2ci9qddxFzBGr4xqA) [PATCH] add cscope support to xen Makefile Add cscope support to xen Makefile. While at it, refactor a bit so etags, ctags, and cscope use same method to generate file list. Signed-off-by: Chris Wright --- BitKeeper/etc/logging_ok | 1 + xen/Makefile | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok index 1772d0abab..a0cec812e6 100644 --- a/BitKeeper/etc/logging_ok +++ b/BitKeeper/etc/logging_ok @@ -15,6 +15,7 @@ br260@laudney.cl.cam.ac.uk bren@anvil.research bren@br260.wolfson.cam.ac.uk ccoffing@novell.com +chrisw@osdl.org cl349@arcadians.cl.cam.ac.uk cl349@firebug.cl.cam.ac.uk cl349@freefall.cl.cam.ac.uk diff --git a/xen/Makefile b/xen/Makefile index 57a150d18a..c9197bc582 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -106,15 +106,18 @@ include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s .PHONY: default debug install dist clean delete-unfresh-files TAGS tags SUBDIRS = arch/$(TARGET_ARCH) common drivers +define all_sources + ( find include/asm-$(TARGET_ARCH) -name SCCS -prune -o -name '*.h' -print; \ + find include -type d -name SCCS -prune -o \( -name "asm-*" -o \ + -name config \) -prune -o -name '*.h' -print; \ + find $(SUBDIRS) -name SCCS -prune -o -name '*.[chS]' -print ) +endef TAGS: - ( find include/asm-$(TARGET_ARCH) -name '*.h'; \ - find include -type d \( -name "asm-*" -o -name config \) -prune -o \ - -name '*.h' -print; \ - find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | etags - + $(all_sources) | etags - tags: - ( find include/asm-$(TARGET_ARCH) -name '*.h'; \ - find include -type d \( -name "asm-*" -o -name config \) -prune -o \ - -name '*.h' -print; \ - find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | xargs ctags + $(all_sources) | xargs ctags +cscope: + $(all_sources) > cscope.files + cscope -k -b -q MAP: nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map -- 2.30.2